package com.djl.sqtg.mapper;

import com.djl.sqtg.entity.Cart;
import com.djl.sqtg.entity.CartVO;
import com.djl.sqtg.entity.Goods;
import com.djl.sqtg.entity.ItemCF;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CartMapper {
    List<CartVO> getCartByUid(Integer uid);
    Integer updateCartState(Integer cid,Integer goodsState);
    Integer deletCartByCid(Integer cid);
    Integer addCart(Integer uid,Integer gid);
    Integer updateCartNum(Integer uid,Integer gid,Integer num);
    Integer updateCartNumBycid(Integer cid,Integer num);
    Cart findCartByUidGid(Integer uid, Integer gid);
}
